/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package berkeley.lab5;

/**
 *
 * @author u
 */
public class Y extends X {
    String x;
    
    public Y(int x) {
        super(x);
        this.x = "y=" + x;
    }
    
    public void f() {
        System.out.println("Hello Y world");
    }
    
    @Override
    public String toString() {
        return x;
    }
}
